package com.jiepos.mpos.biz.channel.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.jiepos.mpos.biz.channel.service.InfChnCustomServiceService;
import com.jiepos.mpos.common.entity.App_Inf_Chn_Custom_ServiceEntity;
import com.jiepos.mpos.core.controller.BaseController;
import com.jiepos.mpos.core.entity.Pagination;

/**
 * 
 * 
 * <p>
 * 标题: —— 会员渠道业务参数扣率控制器
 * </p>
 * <p>
 * 模块: 通用平台
 * </p>
 * <p>
 * 版权: Copyright (c) 2017 江苏杰博实信息技术有限公司
 * 
 * @ProjectName: [mpos]
 * @Package com.jiepos.mpos.biz.channel.controller
 * @author 肖志伟
 * @version 1.0
 * @since 2017年9月21日下午7:31:41 @history（历次修订内容、修订人、修订时间等）
 */
@Controller
@RequestMapping("infchncustomservice")
public class InfChnCustomServiceController extends BaseController {

	@Autowired
	private InfChnCustomServiceService infChnCustomServiceService;

	/**
	 * 会员渠道业务参数扣率列表页面
	 * 
	 * @param request
	 * @param response
	 * @param pagination
	 * @return
	 */
	@RequestMapping("/getInfChnCustomServiceList.do")
	public ModelAndView getChannelInfList(HttpServletRequest request, HttpServletResponse response,
			Pagination pagination) {
		ModelAndView model = new ModelAndView("/module/channel/infchncustomservice/infchncustomservice_list");
		return super.getDetail(request, response, model);
	}

	/**
	 * 会员渠道业务参数扣率json数据
	 * 
	 * @param pagination
	 * @param infChannel
	 * @return
	 */
	@RequestMapping("/getInfChnCustomServiceListJson.do")
	@ResponseBody
	public Map getChannelInfListJson(Pagination pagination,
			App_Inf_Chn_Custom_ServiceEntity app_Inf_Chn_Custom_ServiceEntity, String custom_name,
			String custom_login_id) {
		return infChnCustomServiceService.getInfChnCustomService(pagination, app_Inf_Chn_Custom_ServiceEntity, custom_name,
				custom_login_id);
	}

}
